package com.ws.service.impl;

import com.ws.bean.User;
import com.ws.bean.vo.UserVo;
import com.ws.mapper.UserMapper;
import com.ws.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> list(UserVo userVo) {
        return userMapper.list(userVo);
    }

    @Override
    public int add(User user) {
        return userMapper.add(user);
    }

    @Override
    public int delete(Integer userId) {
        return userMapper.delete(userId);
    }

    @Override
    public User selUserOne(Integer userId) {
        return userMapper.selUserOne(userId);
    }

    @Override
    public int update(User user) {
        return userMapper.update(user);
    }

}
